<br />
<div class="box">
    <div class="box-heading"><?php echo $heading_title; ?></div>
    <div class="box-content">
        <div class="box-category">
            <ul>

                <?php foreach($categories as $row): ?>
                <li>
                    <a href="<?php echo $row['href']; ?>" title='<?php echo $row['seo_name']; ?>' <?php echo $row['class']; ?> "><?php echo $row['name'] ?></a>
                    <?php if (isset($row['children'])): ?>
                    <ul>
                        <?php foreach($row['children'] as $child): ?>
                        <li>
                            <a href="<?php echo $child['href']; ?>" title="<?php echo $child['name']; ?>"><?php echo $child['name']; ?></a>
                        </li>
                        <?php endforeach; ?>
                    </ul>
                    <?php endif; ?>
                </li>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
</div>
